export default {
  getForce(key) {
    this.clear(key)
    return this.get(key)
  },
  clear(key) {
    sessionStorage.removeItem(key)
  },
  set(key, data) {
    sessionStorage.setItem(key, JSON.stringify(data))
  },
  get(key) {
    return JSON.parse(sessionStorage.getItem(key))
  },
}
